package com.cloudeye.monitor;

import org.I0Itec.zkclient.ZkClient;

import java.util.List;

/**
 * @Description: ClassDescription
 * @Author: Zengzhihong
 * @Date: Create at 2018/2/1 13:55
 */
public class TestMain {


    private static ZkClient zkClient = new ZkClient("127.0.0.1:2181",5000);
    
    public static void main(String[] args){
        String path = "/skyeye/monitor/query/cloudeye-benchmark#02/ICOS-20171027OL";
        List<String> children = zkClient.getChildren("/skyeye/monitor/query/cloudeye-benchmark#02");
        System.out.println(children);
        zkClient.createPersistent(path,true);
    }
}
